package cn.stylefeng.guns.modular.courseversion.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 课程版本
 * </p>
 *
 * @author CHENCHEN
 * @since 2022-07-19
 */
@TableName("course_version")
public class CourseVersion implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
      @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 版本号
     */
    @TableField("version")
    private String version;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 专业类型
     */
    @TableField("specialty_id")
    private Long specialtyId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getSpecialtyId() {
        return specialtyId;
    }

    public void setSpecialtyId(Long specialtyId) {
        this.specialtyId = specialtyId;
    }

    @Override
    public String toString() {
        return "CourseVersion{" +
        "id=" + id +
        ", version=" + version +
        ", status=" + status +
        ", createTime=" + createTime +
        ", specialtyId=" + specialtyId +
        "}";
    }
}
